<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($AGENT["name"]); ?></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
</script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/operamasks-ui.min.js'></script>
<link href='/pintuan/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="iframe_page">
    <div class="iframe_content"> 
		<div class="r_nav">
		    <ul>
	            <li class="<?php if(!in_array(ACTION_NAME,array('url','sysurl'))): ?>cur<?php endif; ?>"><a href="<?php echo U('Material/index');?>">图文消息管理</a></li>
	            <li class="<?php if((ACTION_NAME) == "url"): ?>cur<?php endif; ?>"><a href="<?php echo U('Material/url');?>">自定义URL</a></li>
          	</ul>
		</div>
		
<div id="url" class="r_con_wrap">
	<form id="add_form" class="add_form <?php if(($update) == "1"): ?>mod_form<?php endif; ?>" method="post" action="<?php echo U('Material/urlsSave');?>">
        <table border="0" cellpadding="5" cellspacing="0">
            <tr>
                <td>名称 <input type="text" name="name" value="<?php echo ($theurl["name"]); ?>" size="25" class="form_input" notnull /></td>
                <td>Url <input type="text" name="url" value="<?php echo ($theurl["url"]); ?>" size="40" class="form_input" notnull /></td>
                <td><input type="hidden" name="id" value="<?php echo ($theurl["id"]); ?>"/><input type="submit" class="submit" value="<?php if(($update) == "1"): ?>更新URL<?php else: ?>添加URL<?php endif; ?>" name="submit_btn"></td>
            </tr>
        </table>
    </form>
    <table border="0" cellpadding="5" cellspacing="0" class="r_con_table">
        <thead>
            <tr>
                <td width="10%" nowrap="nowrap">序号</td>
                <td width="30%" nowrap="nowrap">名称</td>
                <td width="50%" nowrap="nowrap">Url</td>
                <td width="10%" nowrap="nowrap" class="last">操作</td>
            </tr>
        </thead>
        <tbody>
        <?php if(is_array($lists)): foreach($lists as $k=>$v): ?><tr>
                <td nowrap="nowrap"><?php echo ($k+1); ?></td>
                <td><?php echo ($v["name"]); ?></td>
                <td><a href="<?php echo ($v["url"]); ?>" target="_blank"><?php echo ($v["url"]); ?></a></td>
                <td class="last" nowrap="nowrap">
                    <a href="<?php echo U('url',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif" align="absmiddle" alt="编辑" /></a>
                    <a href="<?php echo U('urlsDel',array('id'=>$v['id']));?>" onClick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif" align="absmiddle" alt="删除" /></a>
                </td>
            </tr><?php endforeach; endif; ?>
                </tbody>
    </table>
    <div class="blank20"></div>
    <div id="turn_page"><?php echo ($page); ?></div>
</div>

	</div>
</div>
</body>
</html>